;;;;;;;;;;;;;;;;; ----------------- ITEM UPGRADER BY MENTAL
;UPGRADEITEMEX X1 X2 X3 X4 X5
;--- X1
;0 armour - 1 weapon - 2 wings - 3 neck - 4 helm - 5 brace R - 6 Brace L - 7 Ring R - 8 Ring L - 9 Amu 
;10 Belt - 11 Boots - 12 Stone
;x3 = % rate of upgrade chance (0 works 100%)
;x4 = max stat than can be added in 1 upgrade
;x5 = 0 not break || 1 break
;x2 =  0(p.recov)1(p.evasion)2(dc)3(mc)4(sc)5(convert to dc requirement)6(edits lvl req)
;x2 =  7(makes item cursed)8(unsure)14(adds dur)
;x2 = 0(ac)1(amc)
;weaps (0dc)(1sc)(2mc)(3luck)(4curse)(5acc)(6slow)
;necks (0acc)(1agil)(5dcreq)
;-----------------------------------------------------------------------------

[@main]
#IF
checkitem AccuracyOrb 1
#ACT
goto @orbacc
break

#IF
checkitem ProtectionOrb 1
#ACT
goto @orbac
break

#IF
checkitem EvilSlayerOrb 1
#ACT
goto @orbamc
break

#IF
checkitem BraveryOrb 1
#ACT
goto @orbdc
break

#IF
checkitem SoulOrb 1
#ACT
goto @orbsc
break

#IF
checkitem MagicOrb 1
#ACT
goto @orbmc
break

#IF
checkitem DurabilityOrb 1
#ACT
goto @orbdur
break

#ELSEACT
goto @normal

[@normal]
Hi <$USERNAME> \
Welcome to my store, my name is not really any of your concern\
but what i can do for you is much greater than any name spoken.\
I can upgrade your items by providing me with either gems or orbs\
and melt these into your items for additional stats, but it all will\
cost you, after all, not everything in life is free!\
<How does this work?/@infoupgrade> | | <I Want to upgrade an item/@upgrademenu> \
<Exit/@exit>

[@infoupgrade]
By collecting the gems dropped around the land of RaGEZONE,\
these can be melted into items giving additional stats to you!\
Gems can cause a destruction of the item but if your lucky\
enough to come to obtain an Orb, they are the real treat! These \
orbs do not break the item, but like a gem, they can fail and \
no stat would be added, not everything in life can be perfect.\
\
<View a price list!/@upgradeprice>\
<Main menu/@main>  ||  <exit/@exit>

[@upgradeprice]
<The prices are as listed below!>\  \
Armour    - <200,000> gold      Rings     - <250,000> gold\
Bracelets - <250,000> gold      Necklace  - <250,000> gold\
Helmet    - <300,000> gold      Boots     - <300,000> gold\
Stone     - <100,000> gold      Belt      - <300,000> gold\
Weapon(orb)    - <400,000> gold     Weapon(gem)    - <250,000> gold     \
<Upgrade an item now!/@upgrademenu>  || <Main menu/@main>  || <exit/@exit>

[@upgrademenu]
<$USERNAME> think carefully on which stat you would like\
added fist....\   \
AC - <choose/@ac>                    AMC - <choose/@amc>\
DC - <choose/@dc>                    SC   - <choose/@sc>\
MC - <choose/@mc>                    DUR - <choose/@dur>\   \
<Price List/@upgradeprice>  ||  <Main menu/@main>  || <exit/@exit>

[@ac]
Note: using this with special rings may add "P.RECOV" ex:galering\  \
<Helmet/@achelm> -- <Right Ring/@acring> -- <Right Bracelet/@acbrac> -- <Boots/@acboots> -- <Belt/@acbelt>\
<Stone/@acstone>\  \
<Protection Gem Required>\
<Main menu/@main>  ||  <exit/@exit> \
<Make sure you have the item equipt! There are no refunds!!!>

[@amc]
Note: using this with special rings may add "P.RECOV" ex:galering\  \
<Helmet/@amchelm> -- <Right Ring/@amcring> -- <Right Bracelet/@amcbrac> -- <Boots/@amcboots> -- <Belt/@amcbelt>\
<Stone/@amcstone>\  \
<Evil Slayer Gem Required>\
<Main menu/@main>  ||  <exit/@exit>\
<Make sure you have the item equipt! There are no refunds!!!>

[@dc]
Note: Higher the stat, lower the chance of a working upgrade!\  \
<Helmet/@dchelm> -- <Necklace/@dcneck> -- <Right ring/@dcring> -- <Right Bracelet/@dcbrac> -- <Boots/@dcboot>\
<Belt/@dcbelt> -- <Stone/@dcstone> -- <Armour/@dcarmour> -- <Weapon/@dcweapon>\  \
<Bravery Gem Required>\
<Main menu/@main>  ||  <exit/@exit>\
<Make sure you have the item equipt! There are no refunds!!!>

[@sc]
Note: Higher the stat, lower the chance of a working upgrade!\  \
<Helmet/@schelm> -- <Necklace/@scneck> -- <Right ring/@scring> -- <Right Bracelet/@scbrac> -- <Boots/@scboot>\
<Belt/@scbelt> -- <Stone/@scstone> -- <Armour/@scarmour> -- <Weapon/@scweapon>\  \
<Soul Gem Required>\
<Main menu/@main>  ||  <exit/@exit>\
<Make sure you have the item equipt! There are no refunds!!!>

[@mc]
Note: Higher the stat, lower the chance of a working upgrade!\  \
<Helmet/@mchelm> -- <Necklace/@mcneck> -- <Right ring/@mcring> -- <Right Bracelet/@mcbrac> -- <Boots/@mcboot>\
<Belt/@mcbelt> -- <Stone/@mcstone> -- <Armour/@mcarmour> -- <Weapon/@mcweapon>\  \
<Magic Gem Required>\
<Main menu/@main>  ||  <exit/@exit>\
<Make sure you have the item equipt! There are no refunds!!!>

[@dur]
Note: Higher the stat, lower the chance of a working upgrade!\  \
<Helmet/@durhelm> -- <Necklace/@durneck> -- <Right ring/@durring> -- <Right Bracelet/@durbrac> -- <Boots/@durboots>\
<Belt/@durbelt>\  \
<Durability Gem Required>\
<Main menu/@main>  ||  <exit/@exit>\
<Make sure you have the item equipt! There are no refunds!!!>

;;; -- Upgrade checks and codes

;;- amc

[@amchelm]
#IF
checkitem EvilSlayerGem 1
checkgold 300000
#ACT
take EvilSlayerGem 1
UPGRADEITEMEX 4 1 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@amcring]
#IF
checkitem EvilSlayerGem 1
checkgold 250000
#ACT
take EvilSlayerGem 1
UPGRADEITEMEX 7 1 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@amcbrac]
#IF
checkitem EvilSlayerGem 1
checkgold 250000
#ACT
take EvilSlayerGem 1
UPGRADEITEMEX 5 1 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@amcboots]
#IF
checkitem EvilSlayerGem 1
checkgold 300000
#ACT
take EvilSlayerGem 1
UPGRADEITEMEX 11 1 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@amcbelt]
#IF
checkitem EvilSlayerGem 1
checkgold 300000
#ACT
take EvilSlayerGem 1
UPGRADEITEMEX 10 1 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@amcstone]
#IF
checkitem EvilSlayerGem 1
checkgold 100000
#ACT
take EvilSlayerGem 1
UPGRADEITEMEX 12 1 3 1 1
take gold 100000
goto @upgrademenu
#ELSEACT
goto @error

;;- AC
[@achelm]
#IF
checkitem ProtectionGem 1
checkgold 300000
#ACT
UPGRADEITEMEX 4 0 3 1 1
take gold 300000
take protectiongem 1
goto @upgrademenu
#ELSEACT
goto @error

[@acring]
#IF
checkitem ProtectionGem 1
checkgold 250000
#ACT
UPGRADEITEMEX 7 0 3 1 1
take gold 250000
take protectiongem 1
goto @upgrademenu
#ELSEACT
goto @error

[@acbrac]
#IF
checkitem ProtectionGem 1
checkgold 250000
#ACT
take protectiongem 1
UPGRADEITEMEX 5 0 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@acboots]
#IF
checkitem ProtectionGem 1
checkgold 300000
#ACT
take protectiongem 1
UPGRADEITEMEX 11 0 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@acbelt]
#IF
checkitem ProtectionGem 1
checkgold 300000
#ACT
take protectiongem 1
UPGRADEITEMEX 10 0 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@acstone]
#IF
checkitem ProtectionGem 1
checkgold 100000
#ACT
take protectiongem 1
UPGRADEITEMEX 12 0 3 1 1
take gold 100000
goto @upgrademenu
#ELSEACT
goto @error

;;- sc

[@scweapon]
#IF
checkgold 250000
checkitem SoulGem 1
#act
take gold 250000
take SoulGem 1
UPGRADEITEMEX 1 2 2 1 1
CLOSE
#ELSEact
goto @errororb

[@schelm]
#IF
checkitem SoulGem 1
checkgold 300000
#ACT
take soulgem 1
UPGRADEITEMEX 4 4 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@scneck]
#IF
checkitem SoulGem 1
checkgold 250000
#ACT
take soulgem 1
UPGRADEITEMEX 3 4 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@scring]
#IF
checkitem SoulGem 1
checkgold 250000
#ACT
take soulgem 1
UPGRADEITEMEX 7 4 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@scbrac]
#IF
checkitem SoulGem 1
checkgold 250000
#ACT
take soulgem 1
UPGRADEITEMEX 5 4 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@scboot]
#IF
checkitem SoulGem 1
checkgold 300000
#ACT
take soulgem 1
UPGRADEITEMEX 11 4 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@scstone]
#IF
checkitem SoulGem 1
checkgold 100000
#ACT
take soulgem 1
UPGRADEITEMEX 12 4 3 1 1
take gold 100000
goto @upgrademenu
#ELSEACT
goto @error

[@scbelt]
#IF
checkitem SoulGem 1
checkgold 300000
#ACT
take soulgem 1
UPGRADEITEMEX 10 4 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@scarmour]
#IF
checkitem SoulGem 1
checkgold 200000
#ACT
take soulgem 1
UPGRADEITEMEX 0 4 3 1 1
take gold 200000
goto @upgrademenu
#ELSEACT
goto @error

;;- dc

[@dcweapon]
#IF
checkgold 250000
checkitem BraveryGem 1
#act
take gold 250000
take BraveryGem 1
UPGRADEITEMEX 1 0 2 1 1
CLOSE
#ELSEact
goto @errororb

[@dchelm]
#IF
checkitem BraveryGem 1
checkgold 300000
#ACT
take braverygem 1
UPGRADEITEMEX 4 2 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@dcneck]
#IF
checkitem BraveryGem 1
checkgold 250000
#ACT
take braverygem 1
UPGRADEITEMEX 3 2 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@dcring]
#IF
checkitem BraveryGem 1
checkgold 250000
#ACT
take braverygem 1
UPGRADEITEMEX 7 2 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@dcbrac]
#IF
checkitem BraveryGem 1
checkgold 250000
#ACT
take braverygem 1
UPGRADEITEMEX 5 2 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@dcboot]
#IF
checkitem BraveryGem 1
checkgold 300000
#ACT
take braverygem 1
UPGRADEITEMEX 11 2 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@dcstone]
#IF
checkitem BraveryGem 1
checkgold 100000
#ACT
take braverygem 1
UPGRADEITEMEX 12 2 3 1 1
take gold 100000
goto @upgrademenu
#ELSEACT
goto @error

[@dcbelt]
#IF
checkitem BraveryGem 1
checkgold 300000
#ACT
take braverygem 1
UPGRADEITEMEX 10 2 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@dcarmour]
#IF
checkitem BraveryGem 1
checkgold 200000
#ACT
take braverygem 1
UPGRADEITEMEX 0 2 3 1 1
take gold 200000
goto @upgrademenu
#ELSEACT
goto @error

;;- mc

[@mcweapon]
#IF
checkgold 250000
checkitem MagicGem 1
#act
take gold 400000
take MagicGem 1
UPGRADEITEMEX 1 1 2 1 1
CLOSE
#ELSEact
goto @errororb

[@mchelm]
#IF
checkitem MagicGem 1
checkgold 250000
#ACT
take magicgem 1
UPGRADEITEMEX 4 3 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@mcneck]
#IF
checkitem MagicGem 1
checkgold 250000
#ACT
take magicgem 1
UPGRADEITEMEX 3 3 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@mcring]
#IF
checkitem MagicGem 1
checkgold 250000
#ACT
take magicgem 1
UPGRADEITEMEX 7 3 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@mcbrac]
#IF
checkitem MagicGem 1
checkgold 250000
#ACT
take magicgem 1
UPGRADEITEMEX 5 3 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@mcboot]
#IF
checkitem MagicGem 1
checkgold 300000
#ACT
take magicgem 1
UPGRADEITEMEX 11 3 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@mcstone]
#IF
checkitem MagicGem 1
checkgold 100000
#ACT
take magicgem 1
UPGRADEITEMEX 12 3 3 1 1
take gold 100000
goto @upgrademenu
#ELSEACT
goto @error

[@mcbelt]
#IF
checkitem MagicGem 1
checkgold 300000
#ACT
take magicgem 1
UPGRADEITEMEX 10 3 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@mcarmour]
#IF
checkitem MagicGem 1
checkgold 200000
#ACT
take magicgem 1
UPGRADEITEMEX 0 3 3 1 1
take gold 200000
goto @upgrademenu
#ELSEACT
goto @error

;;- dur

[@durhelm]
#IF
checkitem DurabilityGem 1
checkgold 300000
#ACT
take DurabilityGem 1
UPGRADEITEMEX 4 14 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@durring]
#IF
checkitem DurabilityGem 1
checkgold 250000
#ACT
take DurabilityGem 1
UPGRADEITEMEX 7 14 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@durbrac]
#IF
checkitem DurabilityGem 1
checkgold 250000
#ACT
take DurabilityGem 1
UPGRADEITEMEX 5 14 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@durneck]
#IF
checkitem DurabilityGem 1
checkgold 250000
#ACT
take DurabilityGem 1
UPGRADEITEMEX 3 14 3 1 1
take gold 250000
goto @upgrademenu
#ELSEACT
goto @error

[@durbelt]
#IF
checkitem DurabilityGem 1
checkgold 300000
#ACT
take DurabilityGem 1
UPGRADEITEMEX 10 14 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

[@durboots]
#IF
checkitem DurabilityGem 1
checkgold 300000
#ACT
take DurabilityGem 1
UPGRADEITEMEX 11 14 3 1 1
take gold 300000
goto @upgrademenu
#ELSEACT
goto @error

;;; - Complete and Error messages

[@error]
Error!\  \
It seems you either are missing the required Gem or you have not\
enough gold... please check and try again!\
<Main menu/@main>  ||  <exit/@exit>

;;-- Orb Menus

[@orbac]
<AC Orb Detected>:\   \
Hi, with this orb you can upgrade any selected item without it\
breaking, but the upgrade still may fail! What would you like to\
do? <You still have to pay for the upgrade!>\  \
<Upgrade selected item/@orbacup> | | <Main Menu/@normal> | | <Price List/@upgradeprice>  

[@orbamc]
<AMC Orb Detected>:\   \
Hi, with this orb you can upgrade any selected item without it\
breaking, but the upgrade still may fail! What would you like to\
do? <You still have to pay for the upgrade!>\  \
<Upgrade selected item/@orbamcup> | | <Main Menu/@normal> | | <Price List/@upgradeprice>  

[@orbdc]
<DC Orb Detected>:\   \
Hi, with this orb you can upgrade any selected item without it\
breaking, but the upgrade still may fail! What would you like to\
do? <You still have to pay for the upgrade!>\  \
<Upgrade selected item/@orbdcup> | | <Main Menu/@normal> | | <Price List/@upgradeprice>  

[@orbmc]
<MC Orb Detected>:\   \
Hi, with this orb you can upgrade any selected item without it\
breaking, but the upgrade still may fail! What would you like to\
do? <You still have to pay for the upgrade!>\  \
<Upgrade selected item/@orbmcup> | | <Main Menu/@normal> | | <Price List/@upgradeprice>  

[@orbsc]
<SC Orb Detected>:\   \
Hi, with this orb you can upgrade any selected item without it\
breaking, but the upgrade still may fail! What would you like to\
do? <You still have to pay for the upgrade!>\  \
<Upgrade selected item/@orbscup> | | <Main Menu/@normal> | | <Price List/@upgradeprice>  

[@orbdur]
<DUR Orb Detected>:\   \
Hi, with this orb you can upgrade any selected item without it\
breaking, but the upgrade still may fail! What would you like to\
do? <You still have to pay for the upgrade!>\  \
<Upgrade selected item/@orbdurup> | | <Main Menu/@normal> | | <Price List/@upgradeprice>  

[@orbacc]
<ACC Orb Detected>:\   \
Hi, with this orb you can upgrade any selected item without it\
breaking, but the upgrade still may fail! What would you like to\
do? <You still have to pay for the upgrade!>\  \
<Upgrade selected item/@orbaccup> | | <Main Menu/@normal> | | <Price List/@upgradeprice>  

;;-- Orb Upgrades

;- ACC
[@orbaccup]
Note: Only a weapon can be melted with an accuracy gem!!\  \
<-[><WEAPON!/@orbaccweap><]->\  \  \
<Main menu/@main>  ||  <exit/@exit>\
<Make sure you have the item equipt! There are no refunds!!!>

;- AC
[@orbacup]
Note: using this with special rings may add "P.RECOV" ex:galering\
<Helmet/@acorbhelm> -- <Right Ring/@acorbring> -- <Right Bracelet/@acorbbrace> -- <Boots/@acorbboots> -- <Belt/@acorbbelt>\
<Stone/@acorbstone>\  \  \
<Main menu/@main>  ||  <exit/@exit>\
<Make sure you have the item equipt! There are no refunds!!!>

;- AMC
[@orbamcup]
Note: using this with special rings may add "P.RECOV" ex:galering\
<Helmet/@amcorbhelm> -- <Right Ring/@amcorbring> -- <Right Bracelet/@amcorbbrace> -- <Boots/@amcorbboots> -- <Belt/@amcorbbelt>\
<Stone/@amcorbstone>\  \  \
<Main menu/@main>  ||  <exit/@exit>\
<Make sure you have the item equipt! There are no refunds!!!>

;- DC
[@orbdcup]
Note: Higher the stat, lower the chance of a working upgrade!\  \
<Helmet/@dcorbhelm> -- <Right Ring/@dcorbring> -- <Right Bracelet/@dcorbbrace> -- <Boots/@dcorbboots> -- <Belt/@dcorbbelt>\
<Stone/@dcorbstone> -- <Necklace/@dcorbneck> -- <-[><WEAPON!/@orbdcweap><]->\  \  \
<Main menu/@main>  ||  <exit/@exit>\
<Make sure you have the item equipt! There are no refunds!!!>

;- MC
[@orbmcup]
Note: Higher the stat, lower the chance of a working upgrade!\  \
<Helmet/@mcorbhelm> -- <Right Ring/@mcorbring> -- <Right Bracelet/@mcorbbrace> -- <Boots/@mcorbboots> -- <Belt/@mcorbbelt>\
<Stone/@mcorbstone> -- <Necklace/@mcorbneck> -- <-[><WEAPON!/@orbmcweap><]->\  \  \
<Main menu/@main>  ||  <exit/@exit>\
<Make sure you have the item equipt! There are no refunds!!!>

;- SC
[@orbscup]
Note: Higher the stat, lower the chance of a working upgrade!\  \
<Helmet/@scorbhelm> -- <Right Ring/@scorbring> -- <Right Bracelet/@scorbbrace> -- <Boots/@scorbboots> -- <Belt/@scorbbelt>\
<Stone/@scorbstone> -- <Necklace/@scorbneck> -- <-[><WEAPON!/@orbscweap><]->\  \  \
<Main menu/@main>  ||  <exit/@exit>\
<Make sure you have the item equipt! There are no refunds!!!>

;- DUR
[@orbdurup]
Note: Higher the stat, lower the chance of a working upgrade!\  \
<Helmet/@durorbhelm> -- <Right Ring/@durorbring> -- <Right Bracelet/@durorbbrace> -- <Boots/@durorbboots> -- <Belt/@durorbbelt>\
<Stone/@durorbstone> -- <Necklace/@durorbneck> -- <-[><WEAPON!/@orbdurweap><]->\  \  \
<Main menu/@main>  ||  <exit/@exit>\
<Make sure you have the item equipt! There are no refunds!!!>

;- UPGRADES BEING DONE

;ACC

[@orbaccweap]
#IF
checkgold 400000
checkitem AccuracyOrb 1
#act
take gold 400000
take AccuracyOrb 1
UPGRADEITEMEX 1 5 2 1 0
CLOSE
#ELSEact
goto @errororb

; AC
[@acorbhelm]
#IF
checkgold 300000
checkitem ProtectionOrb 1
#act
take gold 300000
take ProtectionOrb 1
UPGRADEITEMEX 4 0 2 1 0
CLOSE
#ELSEact
goto @errororb

[@acorbring]
#IF
checkgold 250000
checkitem ProtectionOrb 1
#act
take gold 250000
UPGRADEITEMEX 7 0 2 1 0
take ProtectionOrb 1
CLOSE
#ELSEact
goto @errororb

[@acorbbrace]
#IF
checkgold 250000
checkitem ProtectionOrb 1
#act
take gold 250000
UPGRADEITEMEX 5 0 2 1 0
take ProtectionOrb 1
CLOSE
#ELSEact
goto @errororb

[@acorbboots]
#IF
checkgold 300000
checkitem ProtectionOrb 1
#act
take gold 300000
UPGRADEITEMEX 11 0 2 1 0
take ProtectionOrb 1
CLOSE
#ELSEact
goto @errororb

[@acorbbelt]
#IF
checkgold 400000
checkitem ProtectionOrb 1
#act
take gold 400000
UPGRADEITEMEX 10 0 2 1 0
take ProtectionOrb 1
CLOSE
#ELSEact
goto @errororb

[@acorbstone]
#IF
checkgold 100000
checkitem ProtectionOrb 1
#act
take gold 100000
UPGRADEITEMEX 12 0 2 1 0
take ProtectionOrb 1
CLOSE
#ELSEact
goto @errororb

;;;

[@amcorbhelm]
#IF
checkgold 300000
checkitem EvilSlayerOrb 1
#act
take gold 300000
take EvilSlayerOrb 1
UPGRADEITEMEX 4 1 2 1 0
CLOSE
#ELSEact
goto @errororb

[@amcorbring]
#IF
checkgold 250000
checkitem EvilSlayerOrb 1
#act
take gold 250000
UPGRADEITEMEX 7 1 2 1 0
take EvilSlayerOrb 1
CLOSE
#ELSEact
goto @errororb

[@amcorbbrace]
#IF
checkgold 250000
checkitem EvilSlayerOrb 1
#act
take gold 250000
UPGRADEITEMEX 5 1 2 1 0
take EvilSlayerOrb 1
CLOSE
#ELSEact
goto @errororb

[@amcorbboots]
#IF
checkgold 300000
checkitem EvilSlayerOrb 1
#act
take gold 300000
UPGRADEITEMEX 11 1 2 1 0
take EvilSlayerOrb 1
CLOSE
#ELSEact
goto @errororb

[@amcorbbelt]
#IF
checkgold 400000
checkitem EvilSlayerOrb 1
#act
take gold 400000
UPGRADEITEMEX 10 1 2 1 0
take EvilSlayerOrb 1
CLOSE
#ELSEact
goto @errororb

;;

[@orbdcweap]
#IF
checkgold 400000
checkitem BraveryOrb 1
#act
take gold 400000
take BraveryOrb 1
UPGRADEITEMEX 1 0 3 1 0
CLOSE
#ELSEact
goto @errororb

[@dcorbneck]
#IF
checkgold 300000
checkitem BraveryOrb 1
#act
take gold 300000
take BraveryOrb 1
UPGRADEITEMEX 3 2 3 1 0
CLOSE
#ELSEact
goto @errororb

[@dcorbhelm]
#IF
checkgold 300000
checkitem BraveryOrb 1
#act
take gold 300000
take BraveryOrb 1
UPGRADEITEMEX 4 2 2 1 0
CLOSE
#ELSEact
goto @errororb

[@dcorbring]
#IF
checkgold 250000
checkitem BraveryOrb 1
#act
take gold 250000
UPGRADEITEMEX 7 2 2 1 0
take BraveryOrb 1
CLOSE
#ELSEact
goto @errororb

[@dcorbbrace]
#IF
checkgold 250000
checkitem BraveryOrb 1
#act
take gold 250000
UPGRADEITEMEX 5 2 2 1 0
take BraveryOrb 1
CLOSE
#ELSEact
goto @errororb

[@dcorbboots]
#IF
checkgold 300000
checkitem BraveryOrb 1
#act
take gold 300000
UPGRADEITEMEX 11 2 2 1 0
take BraveryOrb 1
CLOSE
#ELSEact
goto @errororb

[@dcorbbelt]
#IF
checkgold 400000
checkitem BraveryOrb 1
#act
take gold 400000
UPGRADEITEMEX 10 2 2 1 0
take BraveryOrb 1
CLOSE
#ELSEact
goto @errororb

[@dcorbstone]
#IF
checkgold 100000
checkitem BraveryOrb 1
#act
take gold 100000
UPGRADEITEMEX 12 2 2 1 0
take BraveryOrb 1
CLOSE
#ELSEact
goto @errororb

;;

[@orbscweap]
#IF
checkgold 400000
checkitem SoulOrb 1
#act
take gold 400000
take SoulOrb 1
UPGRADEITEMEX 1 2 3 1 0
CLOSE
#ELSEact
goto @errororb

[@scorbneck]
#IF
checkgold 300000
checkitem SoulOrb 1
#act
take gold 300000
take SoulOrb 1
UPGRADEITEMEX 3 4 3 1 0
CLOSE
#ELSEact
goto @errororb

[@scorbhelm]
#IF
checkgold 300000
checkitem SoulOrb 1
#act
take gold 300000
take SoulOrb 1
UPGRADEITEMEX 4 4 2 1 0
CLOSE
#ELSEact
goto @errororb

[@scorbring]
#IF
checkgold 250000
checkitem SoulOrb 1
#act
take gold 250000
UPGRADEITEMEX 7 4 2 1 0
take SoulOrb 1
CLOSE
#ELSEact
goto @errororb

[@scorbbrace]
#IF
checkgold 250000
checkitem SoulOrb 1
#act
take gold 250000
UPGRADEITEMEX 5 4 2 1 0
take SoulOrb 1
CLOSE
#ELSEact
goto @errororb

[@scorbboots]
#IF
checkgold 300000
checkitem SoulOrb 1
#act
take gold 300000
UPGRADEITEMEX 11 4 2 1 0
take SoulOrb 1
CLOSE
#ELSEact
goto @errororb

[@scorbbelt]
#IF
checkgold 400000
checkitem SoulOrb 1
#act
take gold 400000
UPGRADEITEMEX 10 4 2 1 0
take SoulOrb 1
CLOSE
#ELSEact
goto @errororb

[@scorbstone]
#IF
checkgold 100000
checkitem SoulOrb 1
#act
take gold 100000
UPGRADEITEMEX 12 4 2 1 0
take SoulOrb 1
CLOSE
#ELSEact
goto @errororb

;;

[@orbmcweap]
#IF
checkgold 400000
checkitem MagicOrb 1
#act
take gold 400000
take MagicOrb 1
UPGRADEITEMEX 1 1 3 1 0
CLOSE
#ELSEact
goto @errororb

[@mcorbneck]
#IF
checkgold 300000
checkitem MagicOrb 1
#act
take gold 300000
take MagicOrb 1
UPGRADEITEMEX 3 3 3 1 0
CLOSE
#ELSEact
goto @errororb

[@mcorbhelm]
#IF
checkgold 300000
checkitem MagicOrb 1
#act
take gold 300000
take MagicOrb 1
UPGRADEITEMEX 4 3 2 1 0
CLOSE
#ELSEact
goto @errororb

[@mcorbring]
#IF
checkgold 250000
checkitem MagicOrb 1
#act
take gold 250000
UPGRADEITEMEX 7 3 2 1 0
take MagicOrb 1
CLOSE
#ELSEact
goto @errororb

[@mcorbbrace]
#IF
checkgold 250000
checkitem MagicOrb 1
#act
take gold 250000
UPGRADEITEMEX 5 3 2 1 0
take MagicOrb 1
CLOSE
#ELSEact
goto @errororb

[@mcorbboots]
#IF
checkgold 300000
checkitem MagicOrb 1
#act
take gold 300000
UPGRADEITEMEX 11 3 2 1 0
take MagicOrb 1
CLOSE
#ELSEact
goto @errororb

[@mcorbbelt]
#IF
checkgold 400000
checkitem MagicOrb 1
#act
take gold 400000
UPGRADEITEMEX 10 3 2 1 0
take MagicOrb 1
CLOSE
#ELSEact
goto @errororb

[@mcorbstone]
#IF
checkgold 100000
checkitem MagicOrb 1
#act
take gold 100000
UPGRADEITEMEX 12 3 2 1 0
take MagicOrb 1
CLOSE
#ELSEact
goto @errororb

;;

[@orbdurweap]
#IF
checkgold 400000
checkitem DurabilityOrb 1
#act
take gold 400000
take DurabilityOrb 1
UPGRADEITEMEX 1 14 3 1 0
CLOSE
#ELSEact
goto @errororb

[@durorbneck]
#IF
checkgold 300000
checkitem DurabilityOrb 1
#act
take gold 300000
take DurabilityOrb 1
UPGRADEITEMEX 3 14 3 1 0
CLOSE
#ELSEact
goto @errororb

[@durorbhelm]
#IF
checkgold 300000
checkitem DurabilityOrb 1
#act
take gold 300000
take DurabilityOrb 1
UPGRADEITEMEX 4 14 2 1 0
CLOSE
#ELSEact
goto @errororb

[@durorbring]
#IF
checkgold 250000
checkitem DurabilityOrb 1
#act
take gold 250000
UPGRADEITEMEX 7 14 2 1 0
take DurabilityOrb 1
CLOSE
#ELSEact
goto @errororb

[@durorbbrace]
#IF
checkgold 250000
checkitem DurabilityOrb 1
#act
take gold 250000
UPGRADEITEMEX 5 14 2 1 0
take DurabilityOrb 1
CLOSE
#ELSEact
goto @errororb

[@durorbboots]
#IF
checkgold 300000
checkitem DurabilityOrb 1
#act
take gold 300000
UPGRADEITEMEX 11 14 2 1 0
take DurabilityOrb 1
CLOSE
#ELSEact
goto @errororb

[@durorbbelt]
#IF
checkgold 400000
checkitem DurabilityOrb 1
#act
take gold 400000
UPGRADEITEMEX 10 14 2 1 0
take DurabilityOrb 1
CLOSE
#ELSEact
goto @errororb

[@durorbstone]
#IF
checkgold 100000
checkitem DurabilityOrb 1
#act
take gold 100000
UPGRADEITEMEX 12 14 2 1 0
take DurabilityOrb 1
CLOSE
#ELSEact
goto @errororb

;- Errors and Confirmations

[@errororb]
Error!\   \
Either you have taken the orb trying to exploit me or you have\
not enough gold! Please try again....\
<exit/@exit>

[@orbupgradedone]
Your orb upgrade has been done, well done if it worked, if not\
i am sorry, but least it didnt break!\
<exit/@exit>



;;;;;; freebies

[@freecheck]
#IF
checklevelex > 21
#ACT
goto @free
break

#ELSEACT
goto @nonono

[@nonono]
too low\
<exit/@exit>

[@free]
<Please select your free item upgrade>\
Note - it may not work, but it wil not break your item so\
good luck!\
<Select/@freescweap> - SC     <Select/@freedcweap> - DC\
<Select/@freemcweap> - MC        <exit/@exit>\

[@freescweap]
#IF
checknamelist free.txt
#act
goto @cantuse
BREAK

#ELSEACT
goto @sc1

[@sc1]
#ACT
addnamelist free.txt
UPGRADEITEMEX 1 2 3 1 0
CLOSE

[@freedcweap]
#IF
checknamelist free.txt
#act
goto @cantuse
BREAK

#ELSEACT
goto @dc1

[@dc1]
#act
addnamelist free.txt
UPGRADEITEMEX 1 0 3 1 0
CLOSE

[@freemcweap]
#IF
checknamelist free.txt
#act
goto @cantuse
BREAK

#ELSEACT
goto @mc1

[@mc1]
#act
addnamelist free.txt
UPGRADEITEMEX 1 1 3 1 0
CLOSE

[@cantuse]
You used your freebie\
<exit/@exit>
